Lecture Notes on Quicksort

نویسنده

  • Frank Pfenning
چکیده

In this lecture we consider two related algorithms for sorting that achieve a much better running time than the selection sort from last lecture: mergesort and quicksort. We developed quicksort and its invariants in detail. As usual, contracts and loop invariants will bridge the gap between the abstract idea of the algorithm and its implementation. We will revisit many of the computational thinking, algorithm, and programming concepts from the previous lectures. We highlight the following important ones:

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

Randomness & Computation Fall 2011 Lecture 20 : November 1 Lecturer : Alistair Sinclair Based on scribe notes by :

In this lecture we use Azuma’s inequality to analyze the randomized Quicksort algorithm. Quicksort takes as input a set S of numbers, which can be assumed to be distinct without loss of generality, and sorts the set S as follows: it picks a pivot x ∈ S uniformly at random, then it partitions the set S as Sx = {y ∈ S | y > x}, and recursively sorts Sx . The fo...

متن کامل

Factors affecting students tendency of Univercity students to Lecture Notes

Introduction: Many studies detected factors contributing to the students’ tendency to lecture notes. This study aimed at evaluating the factors affecting students tendency to lecture notes in Hormozgan University of Medical Sciences. Methods: In this descriptive study, 179 students from medicine, nursing & midwifery, health, and Paramedicine schools were selected through stratified random...

متن کامل

Cse525: Randomized Algorithms and Probabilistic Analysis Lecture 1

The main theme of this class is randomized algorithms. We start by comparing these to the deterministic algorithms to which we are so accustomed. In the deterministic model of computation (Turing machines and RAM), an algorithm has fixed behavior on every fixed input. In contrast, in the randomized model of computation, algorithms take additional input consisting of a stream of random bits. The...

متن کامل

Principles of Imperative Computation ( Fall 2017 )

In this lecture we consider two related algorithms for sorting that achieve a much better running time than the selection sort from an earlier lecture: mergesort and quicksort. We develop quicksort and its invariants in detail. As usual, contracts and loop invariants will bridge the gap between the abstract idea of the algorithm and its implementation. We will revisit many of the computational ...

متن کامل

Quicksort 15 - 122 : Principles of Imperative Computation ( Summer 1 2015 )

In this lecture we consider two related algorithms for sorting that achieve a much better running time than the selection sort from last lecture: mergesort and quicksort. We developed quicksort and its invariants in detail. As usual, contracts and loop invariants will bridge the gap between the abstract idea of the algorithm and its implementation. We will revisit many of the computational thin...

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

عنوان ژورنال:

دوره   شماره 

صفحات  -

تاریخ انتشار 2012